//
//  LCDeviceDetailInfoCell.m
//  LongChain
//
//  Created by FengZi on 2018/4/9.
//  Copyright © 2018年 FengZi. All rights reserved.
//

#import "LCDeviceDetailInfoCell.h"

@implementation LCDeviceDetailInfoCell


- (void)lc_updateDeviceDetailInfoWithDes:(LCDeviceModel *)detailModel index:(NSIndexPath *)index {
    NSInteger row = [index row];
    NSInteger section = [index section];
    NSString *desStr = @"";
    switch (section) {
        case 0:  //  SN  MAC
        {
            switch (row) {
                case 0:
                {
                    desStr = [NSString stringWithFormat:@"SN:%@",detailModel.sn];
                }
                    break;
                case 1:
                {
                    desStr = [NSString stringWithFormat:@"MAC 地址:%@",detailModel.mac];
                    

                }
                    
                default:
                    break;
            }
        }
            break;
        case 1:  //  当前网络IP 固件当前版本
        {
            switch (row) {
                case 0:
                {
                    desStr = [NSString stringWithFormat:@"固件当前版本号:%@",detailModel.firmware];

                }
                    break;
                case 1:
                {
                    desStr = [NSString stringWithFormat:@"固件当前版本号:%@",detailModel.firmware];

                }
                    break;
                    
                default:
                    break;
            }
        }
            break;
            
        default:
            break;
    }
    self.deviceDetailInfoDes.text = desStr;

}
@end
